package com.syg.middleware.zk.redis.enums;

public enum  CacheTypeEnum {
    /**
     * 本地
     */
    LOCAL,
    REDIS;

    private static final String ILLEGAL_CACHE_TYPE = "非法的缓存类型：";

    private CacheTypeEnum() {
    }

    public static void check(String paramCacheType) {
        CacheTypeEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            CacheTypeEnum cacheType = var1[var3];
            if (cacheType.name().equals(paramCacheType)) {
                return;
            }
        }

        throw new IllegalArgumentException(ILLEGAL_CACHE_TYPE + paramCacheType);
    }
}
